import request from '@/utils/request'

// 查询宿舍操作日志记录列表
export function listLog(query) {
  return request({
    url: '/dormitory/dms-change-log/list',
    method: 'post',
    data: query
  })
}

// 查询宿舍操作日志记录详细
export function getLog(operId) {
  return request({
    url: '/system/log/' + operId,
    method: 'get'
  })
}

// 新增宿舍操作日志记录
export function addLog(data) {
  return request({
    url: '/system/log',
    method: 'post',
    data: data
  })
}

// 修改宿舍操作日志记录
export function updateLog(data) {
  return request({
    url: '/system/log',
    method: 'post',
    data: data
  })
}

// 删除宿舍操作日志记录
export function delLog(operId) {
  return request({
    url: '/dormitory/dms-oper-log/batch/delete' + operId,
    method: 'post'
  })
}